local sk__qinguo_viewas = fk.CreateSkill {

  name = "sk__qinguo_viewas",

  tags = {  },

}



sk__qinguo_viewas:addEffect("viewas", {
  name = "sk__qinguo_viewas",
  card_num = 1,
  expand_pile = function(self,player)
    return player:getTableMark("sk__qinguo_cards")
  end,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and table.contains(player:getTableMark("sk__qinguo_cards"), to_select) and
      player:canUse(Fk:getCardById(to_select), {bypass_times = true})
  end,
  view_as = function(self, player,cards)
    if #cards ~= 1 then return end
    local card = Fk:cloneCard(Fk:getCardById(cards[1]).name)
    card.skillName = "sk__qinguo"
    return card
  end,
})

return sk__qinguo_viewas